package es.ats.codington.festival.interfaces.services;

import java.sql.SQLException;

import es.ats.codington.festival.domain.Visitor;

public interface IVisitorService {

	/**
	 * 
	 * @param u
	 * @return
	 * @throws SQLException
	 * @throws ClassNotFoundException
	 */
	
	public boolean registerNewVisitor(Visitor u) throws SQLException, ClassNotFoundException;
	
	/**
	 * 
	 * @param u
	 * @return
	 * @throws SQLException
	 * @throws ClassNotFoundException
	 */
	
	public boolean updateVisitor(Visitor u) throws SQLException, ClassNotFoundException;
	
	/**
	 * 
	 * @param u
	 * @return
	 * @throws SQLException
	 */
	
	public int getIdVisitor(Visitor u) throws SQLException;
	
	
	/**
	 * 
	 * @param u
	 * @return
	 * @throws SQLException
	 */
	
	public boolean login(Visitor u) throws SQLException;

	/**
	 * 
	 * @param u
	 * @return
	 * @throws SQLException
	 */
	public boolean isAdmin(Visitor u) throws SQLException;
	
	/**
	 * 
	 * @param u
	 * @return
	 * @throws SQLException
	 */
	public boolean unregisterVisitor(Visitor u) throws SQLException;
	
	/**
	 * 
	 * @param u
	 * @return
	 * @throws SQLException
	 */
	public Visitor getVisitor(Visitor u) throws SQLException;
}
